<?php
my_component_load('xl_builder' , false);
my_component_load('testing' , false);
my_component_load('paging' , false);
my_component_load('rpt_grievances');
$task =  isset($_GET['task']) ? $_GET['task']: '';
$periode_id = isset( $_GET['periode_id'] ) ? $_GET['periode_id']:  0;
$modulname = "Reporting _BN_ Grievances";
if($task == "export_excel"){
	header("Content-Type: application/xls");;
	header("Content-Disposition: attachment;filename=rpt_grievances.xls");
	echo export_excel($periode_id);
	exit;
}elseif($task == "cetak"){
	@ob_end_clean(); 
	echo'<pre>';
	echo print_plain($periode_id);
	exit;
}else{
	$pagename = $modulname;
	load_facebox_script();	
	$content = summary_grievances($periode_id);
}
generate_my_web($content, $pagename );
?>